import { useParams } from 'react-router-dom';

function Product() {
    const { productId } = useParams();

    return (<div className="App">
        <header className="App-header">
            RESTfull API, create router <code>product/:productId</code> <br />
            product ID: {productId}
        </header>
    </div>)
}

export default Product; 